package com.newcoder.util;

public enum ReturnCode {

        SUCCESS(200,"操作成功"),
        NODATA(204,"查询成功无记录"),
        UNKNOWN_IP(305, "非法IP请求"),
        FEAILED(400,"客户端异常"),
        NO_permission(401,"没有操作权限"),
        SIGN_IN_EXPIRES(403,"登录过期"),
        API_NOT_EXISTS(404, "请求的接口不存在"),
        SYSTEM_ERROR (500, "服务器异常"),
        UNKNOWN(999, "未知错误");

        private final Integer code;
        private final String msg;

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        ReturnCode(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }

